<%--
  Created by IntelliJ IDEA.
  User: Admin
  Date: 2020/2/14
  Time: 12:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    request.setCharacterEncoding("utf-8");//防止中文乱码

    String username = request.getParameter("name");
    String password = request.getParameter("password");
    if(username==null||"".equals(username.trim())||password==null||"".equals(password.trim())){
        System.out.println("用户名或密码不能为空！");
        response.sendRedirect("login");
        return;
    }else if(username.equals("1001")&&password.equals("1001")){
        response.sendRedirect("guanliyuan");
    }else if(username.equals("20170101001")&&password.equals("20170101001")){
        response.sendRedirect("shouye");
    }else{
    System.out.println("用户名或密码错误！");
    response.sendRedirect("login");
    }

%>